<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.DriverManager" %>
<%@ page import="java.sql.PreparedStatement" %>
<%@ page import="java.sql.ResultSet" %><%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/4/7
  Time: 20:30
  To change this template use File | Settings | File Templates.
--%>
<%--   Model1模式  维护和扩展不利--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Class.forName("cpm.mysql.jdbc.Driver");
    Connection conn= DriverManager.getConnection("","","");
    String sql = "";
    PreparedStatement ps = conn.prepareStatement(sql);
    ResultSet rs= ps.executeQuery();
    while (rs.next()){

    }
    rs.close();
    ps.close();
    conn.close();
%>